<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
  <!-- 当前时间: {{ date ('Y-m-d H:i:s',$time)}} -->
  <!-- <h1>循环操作</h1>
  @foreach ($data as $v)
  {{$v['id']}}-{{$v['name']}} <br>
  @endforeach -->
  <h1>判断操作</h1>
  今天是:
  @if ($week ==1)
  星期一
  @elseif ($week == 2)
  星期2
  @elseif( $week ==3)
  星期3
  @elseif( $week ==4)
  星期4
  @elseif ($week ==5)
  星期5
  @elseif ($week ==6)
  星期6
  @elseif ($week ==7)
  星期7
  @endif
</body>
</html>